package com.spzx.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.spzx.order.domain.OrderForm;
import com.spzx.order.api.domain.OrderInfo;
import com.spzx.order.vo.TradeVo;

import java.util.List;

/**
 * <p>
 * 订单 服务类
 * </p>
 *
 * @author atguigu
 * @since 2024-11-19
 */
public interface IOrderInfoService extends IService<OrderInfo> {

    TradeVo orderTradeData();

    Long submitOrder(OrderForm orderForm);

    TradeVo buy(Long skuId);

    List<OrderInfo> selectUserOrderInfoList(Integer orderStatus);

    OrderInfo selectOrderInfoById(Long orderId);

    void cancelOrder(Long orderId);

    OrderInfo getByOrderNo(String orderNo);

    void processPaySuccess(String orderNo);
}
